package com.nil.codegen.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("t_file_model")
public class FileModel {

    @TableId("id")
    private String id;

    @TableField("file_name")
    private String fileName;

    @TableField("file_size")
    private Double fileSize;

    @TableField("upload_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime uploadTime;

    @TableField("download_count")
    private Integer downloadCount;

    @TableField("download_url")
    private String downloadUrl;

}
